#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include<QWidget>
#include <QMainWindow>
#include <QPushButton>
#include<QPropertyAnimation>


#include<setscenebackground.h>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    explicit MyPushButton(QWidget *parent = nullptr);
    //实现图片按钮
    MyPushButton(QString NormalImg,QString PressImg="");
    //实现按钮点击特效
    void zoom();
//    //重写鼠标按压事件
//    void mousePressEvent(QMouseEvent *e);
//    //重写鼠标释放事件
//    void mouseReleaseEvent(QMouseEvent *e);


    //成员变量
    QString NormalImgPath;  //默认显示的图片
    QString PressImgPath;   //按压之后显示的图片
    SetSceneBackGround *background=NULL;

signals:

};

#endif // MYPUSHBUTTON_H
